package cn.zucc.edu.madq.dao;

import java.util.List;

import cn.zucc.edu.madq.pojo.Message;

public interface MessageMapper {
    int deleteByPrimaryKey(Integer messageId);

    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Integer messageId);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);
    
    int getMessageNum(int userId);
    
    List<Message> getAllMessage(int userId);
}